udev: drop assertion which is always false
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Oct 2022 05:20:33 +0000 (14:20 +0900)
committerMichael Biebl <biebl@debian.org>
Mon, 10 Oct 2022 22:51:55 +0000 (23:51 +0100)
Fixes a bug introduced by 67c3e1f63a5221b47a8fea85ae421671f29f3b7e.

Fixes #24945.

(cherry picked from commit 6209bbbd4b1c9ed2886028ab2ee3df0a7d0e2494)

Gbp-Pq: Name udev-drop-assertion-which-is-always-false.patch

src/udev/udev-builtin-path_id.c

index 93069c70acb3e1bb04ba883e4d5c97b8b01c327b..1084eb2d819720308aae97df089b24223d79c929 100644 (file)
@@ -556,7 +556,6 @@ static int find_real_nvme_parent(sd_device *dev, sd_device **ret) {
          *   /sys/devices/pci0000:00/0000:00:1c.4/0000:3c:00.0/nvme/nvme0 */
 
         assert(dev);
-        assert(nvme);
 
         r = sd_device_get_sysname(dev, &sysname);
         if (r < 0)